export const emit = (pageObj, event, params) => {
    const eventChannel = pageObj.getOpenerEventChannel()
// // 向上级页面传递数据
    eventChannel  && eventChannel.emit && eventChannel.emit(event, params)
}

export const on = (pageObj, event, callback) => {

    const eventChannel = pageObj.getOpenerEventChannel()
    eventChannel && eventChannel.on &&  eventChannel.on(event, callback)
}

